package com.dlyk.service;

import com.dlyk.model.Activity;
import com.dlyk.query.ActivityQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.security.core.Authentication;

import java.util.Date;
import java.util.List;

public interface ActivityService {

    // Easy Code插件（Idea插件生成 controller、service、dao）

    PageInfo<Activity> getActivityListByPage(Integer current, ActivityQuery activityQuery);

    int saveActivity(ActivityQuery activityQuery, Authentication authentication);

    Activity getActivityById(Integer id);

    int editActivity(ActivityQuery activityQuery, String token);

    Activity getActivityDetailById(Integer id);

    int removeActivityById(Integer id);

    int batchRemoveActivity(List<String> ids);

    List<Activity> getAllOngoingActivity();
}

